package com.naizhuai.network.entity;


import java.io.Serializable;

/**
 * 服务器的获取的解析格式
 * Created by code_han on 2018/1/25.
 */

public class ResultResponse<T> implements Serializable {

    private boolean ret;

    private Resource<T> res;

    private long nonce;

    private String sid;

    public ResultResponse() {}


    public boolean isRet() {
        return ret;
    }

    public void setRet(boolean ret) {
        this.ret = ret;
    }

    public Resource<T> getRes() {
        return res;
    }

    public void setRes(Resource<T> res) {
        this.res = res;
    }

    public long getNonce() {
        return nonce;
    }

    public void setNonce(long nonce) {
        this.nonce = nonce;
    }

    public String getSid() {
        return sid;
    }

    public void setSid(String sid) {
        this.sid = sid;
    }

    @Override
    public String toString() {
        return "ret="+ret+";resource="+res.toString()+";nonce="+nonce+";sid="+sid;
    }

}
